﻿<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        x:Name="RootLayout" mc:Ignorable="d">
    <Canvas>
        <Canvas.Projection>
            <PlaneProjection x:Name="canvasProjection"
                             RotationX="0"
                             RotationY="0"
                             RotationZ="0" />
        </Canvas.Projection>

        <Line Stroke="Purple" StrokeThickness="8" X1="10" Y1="200" X2="300" Y2="20" />

        <Rectangle Height="168" Width="104" Canvas.Top="22" Canvas.Left="37"
             Stroke="Red" StrokeThickness="5">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="AntiqueWhite" />
                    <GradientStop Color="Yellow" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>

        <Ellipse Height="97" Width="170" Canvas.Top="77" Canvas.Left="73"
           Fill="#880000FF" Stroke="#FF000000" StrokeThickness="4" />

        <TextBlock Text="TextBlock" TextWrapping="Wrap" Canvas.Top="205" Canvas.Left="51"
             FontFamily="Comic Sans MS" FontSize="24" FontStyle="Normal" />

        <Polygon Points="100,25 175,125 25,125" StrokeThickness="0" Fill="Orange" Canvas.Left="200" Canvas.Top="62" />

        <Path Stroke="Green" StrokeThickness="6"  Canvas.Top="-15" Canvas.Left="51"
        StrokeDashArray="3,1" StrokeDashCap="Round" Data="M100,100 Q200,0 300,100"/>

    </Canvas>
	<Slider Width="200" Canvas.Left="420" Canvas.Top="215" LargeChange="15" Maximum="180" Minimum="-180" SmallChange="1"
            Value="{Binding ElementName=canvasProjection,Path=RotationX,Mode=TwoWay}" />
	<Slider Width="Auto" Canvas.Left="402" Canvas.Top="15" LargeChange="15" Maximum="180" Minimum="-180" SmallChange="1" Height="200" Orientation="Vertical"
            Value="{Binding ElementName=canvasProjection,Path=RotationY,Mode=TwoWay}" />
	<Slider Width="Auto" Canvas.Left="507" Canvas.Top="15" LargeChange="15" Maximum="180" Minimum="-180" SmallChange="1" Height="200" Orientation="Vertical" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto"
            Value="{Binding ElementName=canvasProjection,Path=RotationZ,Mode=TwoWay}" >
		<Slider.RenderTransform>
			<TransformGroup>
				<ScaleTransform/>
				<SkewTransform/>
				<RotateTransform Angle="45"/>
				<TranslateTransform/>
			</TransformGroup>
		</Slider.RenderTransform>
	</Slider>
</Canvas>